const router = require('express').Router()

const { add, list, selectAll, remove, number, select, clear, clearcompleted } = require('../controllers/cart')
const { testLogin } = require('../middleware/cart')
router.get('/list', testLogin, list)
router.get('/clear', testLogin, clear)
router.get('/clearcompleted', testLogin, clearcompleted)
router.get('/select/all', testLogin, selectAll)
router.get('/remove', testLogin, remove)
router.get('/select', testLogin, select)
router.post('/add', testLogin, add)
router.post('/number', testLogin, number)


module.exports = router
